/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import tp.Composition.service.AnimalServiceImpl;
import tp.DIP.violation.Service.ManagerServiceImp;
import tp.Inheritance.Service.BicycleServiceImpl;

/**
 *
 * @author administrator
 */

@Configurable
public class Config {

    @Bean(name="bicycleService")
    public BicycleServiceImpl provideBicycleService()
    {
        return new BicycleServiceImpl();
    }
      @Bean(name="managerService")
    public ManagerServiceImp provideManagerService()
    {
        return new ManagerServiceImp();
    }

    @Bean(name="animalService")
    public AnimalServiceImpl provideAnimalService()
    {
        return new AnimalServiceImpl();
    }
}
